<?php

/**
 *      [Discuz!] (C)2001-2099 Comsenz Inc.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      $Id: magic_invisible.php 6757 2010-03-25 09:01:29Z cnteacher $
 */

if(!defined('IN_DISCUZ')) {
	exit('Access Denied');
}

if(submitcheck("usesubmit")) {

	$expire = $_G['timestamp'] + ($magic['custom']['effectivetime'] ? $magic['custom']['effectivetime'] : 86400);
	DB::query("UPDATE ".DB::table("session")." SET magichidden = 1 WHERE uid='$_G[uid]'");

	magic_use($mid, array('expire'=>$expire), true);
	showmessage('magicuse_success', dreferer().'&quickforward=1');
}

?>